@import '../mdc-helpers/mdc-helpers';

@mixin mat-mdc-input-color($config-or-theme) {
  $config: mat-get-color-config($config-or-theme);
  @include mat-using-mdc-theme($config) {}
}

@mixin mat-mdc-input-typography($config-or-theme) {
  $config: mat-get-typography-config($config-or-theme);
  @include mat-using-mdc-typography($config) {}
}

@mixin mat-mdc-input-density($config-or-theme) {}

@mixin mat-mdc-input-theme($theme-or-color-config) {
  $theme: mat-private-legacy-get-theme($theme-or-color-config);
  @include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-input') {
    $color: mat-get-color-config($theme);
    $density: mat-get-density-config($theme);
    $typography: mat-get-typography-config($theme);

    @if $color != null {
      @include mat-mdc-input-color($color);
    }
    @if $density != null {
      @include mat-mdc-input-density($density);
    }
    @if $typography != null {
      @include mat-mdc-input-typography($typography);
    }
  }
}
